package com.example.chcrm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.chcrm.entity.common.TArea;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Author 邹
 * @Date 2025/4/23 0:57
 * @Version 1.0
 */
@Mapper
public interface TAreaMapper  extends BaseMapper<TArea> {
    /**
     *修改下级区域全称
     * @param oldName
     * @param newName
     * @param parentCode
     */
    void updateLowerNameParent(String oldName, String newName, String parentCode);

    List<Map<String, Object>> getAreaName(String province);


    int total(TArea tArea);
}
